<template name="navHeader">
    <header>
        {{#if currentUser}}
            <div class="btns-group-vertical">
                <a href="#" class="js-user-menu btn-secondary">
                    {{#if userMenuOpen}}
                        <span class="icon-arrow-up"></span>
                    {{else}}
                        <span class="icon-arrow-down"></span>
                    {{/if}}
                    {{emailLocalPart}}
                </a>
                {{#if userMenuOpen}}
                    <a class="js-logout btn-secondary">退出</a>
                {{/if}}
            </div>
        {{else}}
            <div class="btns-group">
                <a href="{{pathFor 'signin'}}" class="btn-secondary">登录</a>
                <a href="{{pathFor 'join'}}" class="btn-secondary">注册</a>
            </div>
        {{/if}}
    </header>
</template>
